﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UcBangDiem.ascx.cs"
    Inherits="STT.Profile.UserControls.UcBangDiem" %>
<style>
    .Panel { 
        margin-top:20px;
    }
</style>
<div id="biography" class="page home" data-pos="home">
    <div style="width: 90%;margin-bottom:30px;">
        <asp:Panel ID="pn_BDCaNhan" runat="server" Visible="true" CssClass="Panel">
        <div class="row">
            <div class="col-md-7">
                <h3 class="title"><span id="ctl02_DtlIndex_Label1_0">Kết quả học tập cá nhân</span></h3>
            </div>
        </div>
        <div style="margin-top: 10px; min-height: 300px;" class="grid_scroll" id="divload" runat="server">
              <asp:GridView ID="GvDiemHV" runat="server" CssClass="table table-bordered table-hover"
                AutoGenerateColumns="False" DataKeyNames="Mahv" AllowPaging="True"
                 OnPageIndexChanging="GvDiemHV_PageIndexChanging" PageSize="100">
               <Columns>
                    <asp:TemplateField HeaderText="Số thứ tự" 
                        SortExpression="SoThuTu">
                        <ItemTemplate>
                           <%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                        <ItemStyle CssClass="span1" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Tên Môn Học" 
                        SortExpression="SoThuTu">
                        <ItemTemplate>
                        <asp:Label ID="lblmalop" runat="server" 
                                Text='<%# Eval("Malop") %>' Visible="false"></asp:Label>
                             <asp:Label ID="lblmamh" runat="server" 
                                Text='<%# Eval("MaMonHoc") %>' Visible="false"></asp:Label>
                        <asp:LinkButton ID="btntemh" runat="server" Text='<%# Eval("TenMonHoc") %>' Font-Underline="true" OnClick="btntemh_Click"></asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle CssClass="span1" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Điểm chuyên cần"
                        SortExpression="DiemChuyenCan">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("DiemChuyenCan") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="point" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Điểm kiểm tra" 
                        SortExpression="DiemKiemTra">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("DiemKT") %>' ></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="point"/>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Điểm thi lần 1" 
                        SortExpression="DiemThiLan1">
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("DiemTL1") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="point" />
                    </asp:TemplateField>
                   <asp:TemplateField HeaderText="Điểm tổng kết" 
                        SortExpression="DiemTK">
                        <ItemTemplate>
                                <asp:Label ID="Label5" runat="server" Text='<%# Eval("DiemTK") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="point" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <asp:Panel ID="Pnthongbao" runat="server" CssClass="Notice-Info" Visible="false">
                <span>Không tìm thấy dữ liệu ,vui lòng xem lại</span>
            </asp:Panel>
        </div>
        </asp:Panel>
        <asp:Panel ID="pn_BDCaLop" runat="server" CssClass="Panel" Visible="false">
        <div class="row" style="padding:10px;">
            <div class="col-md-7" style="background-color:#86cbf3;padding:5px">
                  <asp:Label ID="Label4" runat="server" Text="Danh sách điểm của học viên" Font-Size="20px"></asp:Label>
            </div>
           <div class="col-md-7" style="border: thin solid #D7D7D7; text-align:left;padding:5px;">
               <asp:Label ID="label8" runat="server" Text="Môn học :" Font-Bold="true"></asp:Label>
               <asp:Label ID="lblmonhoc2" runat="server" Text="DTNH1"></asp:Label>&nbsp&nbsp&nbsp&nbsp
               <asp:Label ID="Label10" runat="server" Text="Tên lớp :" Font-Bold="true"></asp:Label>
               <asp:Label ID="lbltenlop2" runat="server" Text="DTNH1"></asp:Label>
           </div>
        </div>
        <div class="modal-body">   
           <asp:GridView ID="gvDSDiemHV" runat="server" CssClass="table table-bordered table-hover"
                AutoGenerateColumns="False" DataKeyNames="Mahv" AllowPaging="True"
                 OnPageIndexChanging="gvDSDiemHV_PageIndexChanging" PageSize="100" OnRowDataBound="gvDSDiemHV_RowDataBound" >
               <Columns>
                    <asp:TemplateField HeaderText="Số thứ tự" 
                        SortExpression="SoThuTu">
                        <ItemTemplate>
                           <%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                        <ItemStyle CssClass="span1" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="TenHV" HeaderText="Họ Tên"
                        SortExpression="TenHV" ItemStyle-CssClass="span2">
                        <ItemStyle CssClass="span2"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="Ten" HeaderText="Tên"
                        SortExpression="Ten" ItemStyle-CssClass="span2">
                        <ItemStyle CssClass="span2"></ItemStyle>
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="Điểm chuyên cần"
                        SortExpression="DiemChuyenCan">
                        <ItemTemplate>
                             <asp:Label ID="Label6" runat="server" CssClass="point" Text='<%# Eval("DiemChuyenCan") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="span1" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Điểm kiểm tra" 
                        SortExpression="DiemKiemTra">
                        <ItemTemplate>
                            <asp:Label ID="Label6" runat="server" CssClass="point" Text='<%# Eval("DiemKT") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="span1" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Điểm thi" 
                        SortExpression="DiemThiLan1">
                        <ItemTemplate>
                             <asp:Label ID="Label6" runat="server" CssClass="point" Text='<%# Eval("DiemTL1") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="span1" />
                    </asp:TemplateField>
                   <asp:TemplateField HeaderText="Điểm tổng kết" 
                        SortExpression="DiemTongKet">
                        <ItemTemplate>
                             <asp:Label ID="Label6" runat="server" CssClass="point" Text='<%# Eval("DiemTK") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="span1" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
           <div class="btnsave">
           <asp:LinkButton ID="lbtBDCN" runat="server" OnClick="lbtBDCN_Click" Font-Underline="true">Quay lại danh sách điểm cá nhân</asp:LinkButton>
         </div>
         </div>
        </asp:Panel>
    </div>
</div>
